const express = require('express');

const shopController = require('../controllers/shop')

const router = express.Router();

router.get('/',shopController.getIndex);

router.get('/products',shopController.getProducts);

router.get('/products/:productId', shopController.getProductsId);

router.get('/cart',shopController.getCart);

router.post('/cart', shopController.getToCart)

router.get('/orders',shopController.getOrders); 

router.get('/checkout', shopController.getCheckout);

router.post('/cart-delete-item', shopController.postCartDeleteProduct);


module.exports = router;